package com.yxw.system.service;

import com.atguigu.model.system.SysRole;
import com.atguigu.model.vo.AssginRoleVo;
import com.atguigu.model.vo.SysRoleQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @className: com.yxw.system.service.SysRoleService
 * @description: TODO
 * @author: tommy
 * @create: 2023-07-20 下午 09:30
 */
public interface SysRoleService extends IService<SysRole> {
    IPage<SysRole> selectPage(Page<SysRole> pageParam, SysRoleQueryVo sysRoleQueryVo);
    // 获取用户的角色数据
    Map<String, Object> getRoleByUserId(String userId);
    // 根据用户分配角色
    void doAssign(AssginRoleVo assginRoleVo);
}
